package com.eastfair.pay.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.pay.dto.ContractDTO;
import com.eastfair.pay.vo.ContractFinanceVO;
import com.eastfair.pay.entity.Contract;

/**
 * <p>
 * 业务接口
 * 合同
 * </p>
 *
 * @author clm
 * @date 2022-06-08
 */
public interface ContractService extends SuperService<Contract> {

    void saveOrUpdate(ContractDTO contractDTO);

    Boolean isCollected(Long contractId);

    void deleteById(Long contractId);

    Contract getByBusinessId(Long businessId);

    /**
     * 合同财务信息
     * @param contractId
     * @return
     */
    ContractFinanceVO queryFinance(Long contractId);
}
